package com.huawei.qqz;

import com.huawei.DMD.MonKey;
import com.huawei.KFC.Thor;
import com.huawei.bigcong.HaplopelmaLividum;
import com.huawei.chang.Rabbit;
import com.huawei.cs.Cs;
import com.huawei.hoto.DonaldDark;
import com.huawei.r9.TigerBro;
import com.huawei.sjp.KnifeSauce;
import com.huawei.xny.ShaMaTeTuanZhang;
import com.sun.org.apache.xpath.internal.operations.Equals;

import java.util.Scanner;

public class DongBaiZoo {
    public static void main(String[] args) {
        System.out.println("欢迎来到东百动物园!!!");
        System.out.println("我们有以下动物:");
       String[] animalNames={"蓝蜘蛛","唐老鸭","虎哥","兔子","雷公","杀马特团长","刀酱","猴子"};
       for(int i=0;i< animalNames.length;i++) {
           System.out.println(i + 1 + "." + animalNames[i]);
       }
        System.out.println("请选择你要查看的动物:");
        Scanner inputchoose =new Scanner(System.in);
        int choose=inputchoose.nextInt();
        while (choose!=0){
       switch (choose){
           case 1:
               HaplopelmaLividum lzz=new HaplopelmaLividum();
               lzz.setName("金属蓝");
               lzz.setId(1988L);
               lzz.setColor("蓝色");
               lzz.setHigh("6cm");
               lzz.setGender("雄");
               System.out.println(lzz);break;
           case 2:
               DonaldDark tly=new DonaldDark();
               tly.setName("地中之帝");
               tly.setId(9898L);
               tly.setColor("白色");
               tly.setHigh("179cm");
               tly.setGender("雄");
               System.out.println(tly);break;
           case 3:
               TigerBro hg=new TigerBro();
               hg.setName("社会你虎哥");
               hg.setId(712L);
               hg.setColor("黑色");
               hg.setHigh("171cm");
               hg.setGender("雄");
               System.out.println(hg);break;
               //1
           case 4:
               Rabbit rabbit=new Rabbit();
               rabbit.setName("灰白兔");
               rabbit.setId(1987L);
               rabbit.setColor("白色");
               rabbit.setHigh("35cm");
               rabbit.setGender("雌");
               System.out.println(rabbit);break;
           case 5:
               Thor thor=new Thor();
               thor.setName("贵物");
               thor.setId(20039L);
               thor.setColor("灰色");
               thor.setHigh("185cm");
               thor.setGender("未知");
               System.out.println(thor);break;
           case 6:
               ShaMaTeTuanZhang smt=new ShaMaTeTuanZhang();
               smt.setName("杀马特团长");
               smt.setId(10086L);
               smt.setColor("五颜六色");
               smt.setHigh("178cm");
               smt.setGender("雄");
               System.out.println(smt);break;
           case 7:
               KnifeSauce ks=new KnifeSauce();
               ks.setName("刀哥");
               ks.setId(2002L);
               ks.setColor("粉红色");
               ks.setHigh("170cm");
               ks.setGender("雄");
               System.out.println(ks);break;
           case 8:
               MonKey monKey=new MonKey();
               monKey.setName("孙悟空");
               monKey.setId(1986L);
               monKey.setColor("未知");
               monKey.setHigh("130cm");
               monKey.setGender("雄");
               System.out.println(monKey);break;
           default:System.out.println("请输入正确编号!!!!!");break;
       }
            System.out.println("继续查看请输入编号,反之输入0:");
            choose=inputchoose.nextInt();
        }
        System.out.println("你想在里面拥有一个属于自己的动物吗(Yes/No)?");
       Scanner inputcanimal=new Scanner(System.in);
       String can=inputcanimal.nextLine();
       if("Yes".equals(can)||"YES".equals(can)||"yes".equals(can)){
           Cs cs=new Cs();
           System.out.println("输入动物ID");
           Scanner yourId=new Scanner(System.in);
           cs.setId(yourId.nextInt());
           System.out.println("输入动物名字");
           Scanner yourName=new Scanner(System.in);
           cs.setName(yourName.nextLine());
           System.out.println("输入动物颜色");
           Scanner yourColor=new Scanner(System.in);
           cs.setColor(yourColor.nextLine());
           System.out.println("输入动物身高:");
           Scanner yourhigh=new Scanner(System.in);
           cs.setHigh(yourhigh.nextLine());
           System.out.println("输入动物性别:");
           Scanner yourgender=new Scanner(System.in);
           cs.setGender(yourgender.nextLine());
           System.out.println(cs);
           System.out.println("感谢你的浏览，再见!!");
       }else if("No".equals(can)||"NO".equals(can)||"no".equals(can)){
           System.out.println("那就感谢" +
                   "你的浏览，再见!!");
       }else{
           System.out.println("虽然不知道你在说什么,但是还是感谢你的游览！！？");
       }
    }
}
